package com.cn.xiaonuo.modular.service.app;

import java.util.Date;
import java.util.List;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cn.xiaonuo.modular.dao.UserFocusDao;
import com.cn.xiaonuo.modular.model.app.UserFocus;
import com.cn.xiaonuo.modular.model.app.UserInfo;

@Service
public class UserFocusService {
	@Autowired
	private UserFocusDao userFocuslDao ;
	//查询关注列表
	public List<UserInfo> queryList(UserFocus userfocus) {
		List<UserInfo> list=userFocuslDao.findList(userfocus);
		return list;
	}
	//插入关注
		public void insertUserFocus(UserFocus userfocus) {
			userfocus.setCreateTime(new Date());
			userfocus.setUpdateTime(new Date());
			userFocuslDao.insert(userfocus);
		}
	//取消关注
		public void deleteUserFocus(UserFocus userfocus) {
			userFocuslDao.delete(userfocus);
		}
	
}
